<h1>Listing computers</h1>

<table>
  <tr>
    <th>Mac adress</th>
    <th>Ip computer</th>
    <th>Ram</th>
    <th>Cpu</th>
    <th>Hard drive</th>
    <th>State computer</th>
    <th>State agent</th>
  </tr>

<% @computers.each do |computer| %>
  <tr>
    <td><%=h computer.mac_adress %></td>
    <td><%=h computer.ip_computer %></td>
    <td><%=h computer.ram %></td>
    <td><%=h computer.cpu %></td>
    <td><%=h computer.hard_drive %></td>
    <td><%=h computer.state_computer %></td>
    <td><%=h computer.state_agent %></td>
    <td><%= link_to 'Show', computer %></td>
    <td><%= link_to 'Edit', edit_computer_path(computer) %></td>
    <td><%= link_to 'Destroy', computer, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New computer', new_computer_path %>